/* 基础样式 */
html {
    /* width: 100%;
    height: 100%; */
}
body {
    /* width: 100%;
    height: 100%; */
    margin: 0;
    padding: 0;
}
ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}


#app {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    height: 30rem;
    margin-top: 1rem;
}
/* 数独表格 */
ul.sudoku-list {
    display: inline-block;
    width: 18rem;
    height: 18rem;
    border: 0.1rem solid silver;
}
.base-cell {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    border: 0.05rem solid silver;
    box-sizing: border-box;
    font-size: 1rem;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
}
.sudoku-list .zero-cell {
    background-color: brown;
}
.sudoku-list .rele-focus {
    background-color: seagreen;
}
.sudoku-list .rele-invalid {
    background-color: crimson;
}
.sudoku-list li.digged-cell.focus {
    border-color: aqua;
}
.sudoku-list .input-invalid {
    background-color: crimson;
}
.digged-cell {
    background-color: darksalmon;
}
.base-cell.bold-bottom {
    border-bottom: 0.05rem solid black;
}
.base-cell.bold-top {
    border-top: 0.05rem solid black;
}
.base-cell.bold-right {
    border-right: 0.05rem solid black;
}
.base-cell.bold-left {
    border-left: 0.05rem solid black;
}

ul.number-btns {
    display: inline-block;
    width: 20rem;
    margin-top: 1rem;
    border: 0.1rem solid silver;
}

.user-interface {
    width: 20rem;
    margin: 0 -0.5rem;
    text-align: center;
}
.user-btns {
    display: inline-block;
    width: 4rem;
    height: 2rem;
    line-height: 2rem;
    border: 0.05rem solid darksalmon;
    border-radius: 0.5rem;
    margin: 0 0.5rem;
    cursor: pointer;
    font-size: 0.7rem;
    text-align: center;
}
.answer-table {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}
.answer-table .answer-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 1rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: white;
}
.answer-table.show {
    display: block;
}